#ifndef _ANIMATIONSTATE_H_
#define _ANIMATIONSTATE_H_
#include <SECore/StateMachine/State.h>
#include <SEAnimation/Entity/AnimationClip.h>
#include <SECore/Signal.h>
#include <SECore/Descriptor.h>

namespace SEngine
{
    class AnimationState : public State, public AnimationClip, public AnyDescriptor
    {
    public:
        AnimationState();
        virtual ~AnimationState() = default;
        virtual void OnEntry() override;
        virtual void OnExit() override;
        virtual void OnState() override;

        Signal<> SignalGotoNextState;

    private:
        int m_frame{0};
    };
} // namespace SEngine



#endif